<?php

namespace IDock\Insurance\AMIC\Request;

use IDock\Insurance\AMIC\Request\AllAMICRequest;
use IDock\Insurance\AMIC\Response\VehicleModelResponse;
use IDock\Visitor\VehicleModelVisitor;

class VehicleModelRequest extends AllAMICRequest
{
    public $requestType = 'N0211';

    protected $response = VehicleModelResponse::class;

    protected $urlTip = '车型查询';

    /*** @var  VehicleModelVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $modelName = str_replace("牌",'',$this->visitor->vehicleModel);
        return [
            'vehicleQuery' => [
                'vehicleName' => $modelName,
                'pageNo' => 1,
                'pageSize' => 50,
            ]
        ];
//        return [
//            'basePart' => [
//                'orderNo' => 'HXY28177b1719910538027',
//                'firstRegisterDate' => $this->visitor->firstRegisterDate,
//                'businessSource' => '1',
//                'referraltrafficCode' => '251000004',
//            ]
//
//        ];
    }
}
